<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "WeixinConfiguration.function"/> - <@s.m "global.edit"/></div>
	<form class="ropt">
		<input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<#include "/common/image_upload.html"/>
<#assign usernameExist><@s.m "error.usernameExist"/></#assign>
<@p.form id="jvForm" action="o_update_WeixinConfiguration.do" labelWidth="12">
<@p.hidden name="id" value=weixinConfiguration.id/>

<@p.select colspan="1" width="50" label="店铺"  name="shopId" value=weixinConfiguration.shop.id list=shopList listKey="id" listValue="shopName" required="true"/>
<@p.select colspan="1" width="50" label="素材id"  name="materialId" value=weixinConfiguration.weixinMaterial.id list=weixinMaterialList listKey="id" listValue="id" required="true"/><@p.tr/>

<@p.select colspan="1" width="50" label="事件设置类型"  name="configType" value=weixinConfiguration.configType list=configTypeList listKey="dicCode" listValue="dicName" required="true" headerKey="" headerValue="cmsDictionary.type.allType"/>
<@p.text colspan="1" width="50" label="关键词" name="keyword" value=weixinConfiguration.keyword required="false" class="required" maxlength="100" help="除非事件类型是“关键词回复”,否則此項不填"/><@p.tr/>

<@p.radio colspan="1" width="50" label="是否主菜单" name="isMain" value=weixinConfiguration.isMain list={"1":"是","-1","否"} required="false" class="required"/>
<@p.select colspan="1" width="50" label="特殊服务调用"  name="specialServiceCode" value=weixinConfiguration.specialServiceCode list=specialServiceList listKey="dicCode" listValue="dicName" required="false" headerKey="" headerValue="cmsDictionary.type.allType"/>
<@p.tr/>

<@p.td colspan="2"><@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/></@p.td>
</@p.form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>